package org.edu.modules.classChoise.service.impl;

import org.edu.modules.classChoise.entity.VeJwXksj;
import org.edu.modules.classChoise.mapper.VeJwXksjMapper;
import org.edu.modules.classChoise.service.IVeJwXksjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description: 选课时间
 * @Author:
 * @Date:   2021-05-14
 * @Version: V1.0
 */
@Service
public class VeJwXksjServiceImpl extends ServiceImpl<VeJwXksjMapper, VeJwXksj> implements IVeJwXksjService {
    @Autowired
    private VeJwXksjMapper veJwXksjMapper;
    @Override
    public int changeDelStatusByIds(String[] ids, int isDelete) {
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("ids", ids);
        map.put("isDelete", isDelete);
        return veJwXksjMapper.changeDelStatusByIds(map);
    }
    @Override
    public int changeStatusByIds(String[] ids, int isDelete) {
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("ids", ids);
        map.put("status", isDelete);
        return veJwXksjMapper.changeStatusByIds(map);
    }
}
